<div>
    <div class="eChart-div">
        <div id="deposit_bar" style="width: 100%;height: 400px"></div>
    </div>
</div>

<script type="text/javascript">
    var deposit = JSON.parse('{!! $deposit !!}')
    var depositBar = {
        id:'deposit_bar',
        title:'押金统计/元',
        legend:['押金'],
        category:['饮水机','水桶'],
        series:{
            data:[
                parseFloat(deposit.total_water_deposit),
                parseFloat(deposit.total_bucket_cash)
            ]
        }
    }
    $(function () {
        canvasBarOne(depositBar)
    });
</script>
